home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / pc / windows / qtw_201 / setup / samples / mmio_dh / datahp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-19  |  1.9 KB  |  73 lines

  1. /*
  2. ********************************************************************************
  3. **
  4. ** File: datahp.h
  5. **
  6. ** Description:
  7. **
  8. **  Private header file for use with Quicktime Data Handler.
  9. **
  10. ********************************************************************************
  11. */
  12. #ifndef DATAHP_H
  13. #define DATAHP_H
  14.  
  15. #include <mmsystem.h>
  16.  
  17. #include <qtw.h>
  18. #include <compmgr.h>
  19.  
  20. #define INTERNAL_DHLR
  21. #include "datah.h"
  22.  
  23. // Data types
  24. typedef short * PSHORT ;
  25. typedef short FAR * LPSHORT ;
  26. typedef BOOL * PBOOL ;
  27. typedef BOOL FAR * LPBOOL ;
  28. #define HUGE _huge
  29. typedef char HUGE * HPSTR ;
  30. typedef unsigned char HUGE * HPBYTE ;
  31. typedef void HUGE * HPVOID ;
  32. typedef LONG HUGE * HPLONG ;
  33. #define GlobalDeref(a) GlobalLock(a)
  34.  
  35. typedef struct _tagDataHInstanceStorage {
  36.     ComponentInstance ci;
  37.     HGLOBAL fileName;           // required for mmioOpen
  38.     HMMIO mmioH;                // mmio handle to open file
  39.     LONG lFlags;
  40.     DWORD minFileOffset;
  41.     DWORD maxFileOffset;
  42.     LONG bytesPerSecond;
  43. } DataHInstanceStorage, FAR *DataHInstanceStoragePtr;
  44.     
  45. typedef struct _tagDataHGlobalStorage {
  46.     BOOL mmioInitialized;
  47. } DataHGlobalStorage, FAR *DataHGlobalStoragePtr;
  48.  
  49.  
  50. /* data handler version 1.0 */
  51. #define kDataHVersion   0x00010000
  52. #define mmioINVALID ((HMMIO)-1)
  53. #define hfileINVALID ((HFILE)-1)
  54.  
  55. /* internal data handler function prototypes */
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59.  
  60. ComponentResult QTAPI DataHCanDo( STKOFF_CMP so, LONG lFunctionSelector) ;
  61. ComponentResult QTAPI DataHClose( STKOFF_CMP so, ComponentInstance ci) ;
  62. ComponentResult QTAPI DataHOpen( STKOFF_CMP so, ComponentInstance ci) ;
  63. ComponentResult QTAPI DataHVersion( STKOFF_CMP so, ComponentInstance ci) ;
  64. DWORD QTAPI DataHEntry(VOID);
  65. LPVOID QTAPI GetMemory( LONG lSize) ;
  66. OSType FAR PASCAL THNGIDENTIFY( LPCID FAR *lplpcid) ;
  67.  
  68. #ifdef __cplusplus
  69. }                                           // defined __cplusplus
  70. #endif
  71.  
  72. #endif /* DATAHP_H */
  73.